if (!appid)
return;
- g_hash_table_insert (self->window_to_appid, window, g_strdup (appid));
+ g_hash_table_insert (self->window_to_appid, window, appid);
window_count = GPOINTER_TO_UINT (g_hash_table_lookup (self->running_appids, appid));
static void
shell_app_monitor_on_n_workspaces_changed (MetaScreen *screen,
+ GParamSpec *pspec,
gpointer user_data)
{
ShellAppMonitor *self = SHELL_APP_MONITOR (user_data);
g_signal_connect (screen, "notify::n-workspaces",
G_CALLBACK (shell_app_monitor_on_n_workspaces_changed), self);
- shell_app_monitor_on_n_workspaces_changed (screen, self);
+ shell_app_monitor_on_n_workspaces_changed (screen, NULL, self);
}
static void